package com.hopes.bizz.poll.gis.bo;

import com.hopes.bizz.poll.common.constant.enums.PollModDictEnum;
import com.hopes.bizz.poll.common.constant.enums.PollSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/6/6 15:36
 * @Description:
 */
@Data
@EqualsAndHashCode()
public class GISMonitorSite {

    /**
     * 监控点id
     */
    @Schema(description="监控点id")
    private Long monitorSiteId;

    /**
     * 监控类型
     */
    @Schema(description="监控类型")
    private String monitorType;

    /**
     * 监控点名称
     */
    @Schema(description="监控点名称")
    private String name;

    /**
     * 监控点位置
     */
    @Schema(description="监控点位置")
    private String monitorLocation;

    /**
     * orgId
     */
    @Schema(description="orgId")
    private Long orgId;

    public String getOrgIdStr() {
        return DictResolver.getItemLabelByValue(AdminDictEnum.sys_company, this.orgId);
    }

    public String getMonitorTypeStr() {
        return DictResolver.getItemLabelByValue(PollModDictEnum.site_type, this.getMonitorType());
    }
}
